//
//  NetworkTool+OAuth.swift
//  Swift-sina
//
//  Created by gaoyanyun on 16/5/16.
//  Copyright © 2016年 mac. All rights reserved.
//

import Foundation

//网络授权--身份授权部分
extension NetworkTools {
    
    //返回身份验证URL
    func oauthURL() -> NSURL{
        let urlString = "https://api.weibo.com/oauth2/authorize?client_id=\(appkey)&redirect_uri=\(redirectUri)"
       
        
        return NSURL (string: urlString)!
    }
}